package controllers;

import models.User;

public class Security extends Secure.Security {

	static boolean authenticate(String username, String password) {

		User user = User.find("byType", 0).first();
		String uname = user.username;
		String pwd = user.pwd;

		if (uname.equals(username) && pwd.equals(MD5Util.calc(password))) {
			return true;
		}
		return false;
	}

}
